<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script>
			var twice = {
				apply(target, ctx, args) {
					return Reflect.apply(...arguments) * 2
				},
			}
			function sum(left, right) {
				return left + right
			}
			var proxy = new Proxy(sum, twice)
			proxy(1, 2) // 6
			proxy.call(null, 5, 6) // 22
			proxy.apply(null, [7, 8]) // 30
		</script>
	</head>
	<body></body>
</html>
